package com.zy.mall.dao;

import com.zy.mall.model.Goods;
import com.zy.mall.model.Spec;
import com.zy.mall.model.Type;
import com.zy.mall.model.vo.TypeGoodsVo;

import java.util.List;

public interface GoodsDao {
    List<Type> getType();

    List<TypeGoodsVo> getGoodsByType(String typeId);

    int lastInsertId();

    void addGoods(Goods goods);

    void addSpecs(List<Spec> specs);

    int addType(Type name);
}
